// $_FILEHEADER_BEGIN ***************************
// 版权声明:Timer
// Copyright © 2015 - Timer All Rights Reserved
// 文件名称: ARCellHelper.h
// 创建日期: 15/12/13
// 创 建 人: 甄鑫
// 文件说明: <#content#>
// $_FILEHEADER_END ******************************


#import <Foundation/Foundation.h>
//***********************************************************************
//                          枚举
//***********************************************************************
typedef enum : NSUInteger
{
    AR_CELL_TYPE_FRIEDN,
    AR_CELL_TYPE_TITLE,
    AR_CELL_TYPE_REASON,
    AR_CELL_TYPE_SIMPLE,
} AR_CELL_TYPE;

//***********************************************************************
//                          协议
//***********************************************************************
@class ARCellModel;

@protocol ARCellProtocol <NSObject>
@required
- (void)setData:(id)data;
- (void)reSet;
- (id)getData;
- (void)setDelegate:(id)delegate;
//+ (CGFloat)getCellHeight;
@end

//***********************************************************************
//                          代理
//***********************************************************************
@protocol ARCellDelegate <NSObject>
- (void)attendantOrderCellClick:(UITableViewCell<ARCellProtocol> *)cell;
@end

//***********************************************************************
//                          helper
//***********************************************************************
@interface ARCellHelper : NSObject
+ (NSString *)getCellIdWithType:(AR_CELL_TYPE)type;
+ (UITableViewCell<ARCellProtocol> *)createCellWithType:(AR_CELL_TYPE)type andBaseType:(NSInteger)baseType andPageType:(NSInteger)pageType;
+ (CGFloat)getCellHeightWithType:(AR_CELL_TYPE)type andBaseType:(NSInteger)baseType;
@end

//***********************************************************************
//                          CellModel
//***********************************************************************
@interface ARCellModel : NSObject
@property (nonatomic, assign) AR_CELL_TYPE cellType;
@property (nonatomic, assign) NSInteger parentVCType;
@property (nonatomic, strong) NSString *cellBaseType;
@property (nonatomic, strong) id data;

- (CGFloat)getCellHeight;
- (NSString *)getCellIdStr;
- (UITableViewCell<ARCellProtocol> *)getCellNib;
@end


@interface NSDictionary (ARCellModelDataParse)

-(NSString *)creditamount;
-(NSString *)days;
-(NSString *)hopeamount;
-(NSString *)hoperate;
-(NSString *)investamount;
-(NSString *)investrate;
-(NSString *)isborrow;
-(NSString *)fetchLevel;
-(NSString *)localid;
-(NSString *)priod;
-(NSString *)remainhour;
-(NSString *)remainminute;
-(NSString *)status;
-(NSString *)summary;
-(NSString *)fullname;
-(NSString *)fetchInvestcount;
-(NSString *)fetchInteresttime;
@end
